Re: [SQL] Time related question...

Поиск
Список
Период
Сортировка
От Herouth Maoz
Тема Re: [SQL] Time related question...
Дата
Msg-id l03110707b1ad7204baf8@[147.233.159.109]
обсуждение исходный текст
Ответ на Re: [SQL] Time related question...  (Patrice Hédé <patrice@idf.net>)
Список pgsql-sql
At 15:45 +0300 on 17/6/98, Patrice Hédé wrote:


> with datetime, it could be then :
>
> select * from servicecall whre (dateclosed - dateentered) < '3 days';
>
> However, if you really need abstime, I don't know the answer.

Actually, all that needs be done is to cast the abstime as datetime. Such as:

SELECT *
FROM servicecall
WHERE ( datetime( dateclosed ) - datetime( dateentered ) ) < '3 days';

Herouth

--
Herouth Maoz, Internet developer.
Open University of Israel - Telem project
http://telem.openu.ac.il/~herutma



В списке pgsql-sql по дате отправления:

Предыдущее
От: "Jose' Soares Da Silva"
Дата:
Сообщение: Re: [SQL] cast text as date
Следующее
От: Patrice Hédé
Дата:
Сообщение: Re: [SQL] Internationalisation: SELECT str (ignoring Umlauts/Accents)